#include "power.h"

extern SensorInfo_TypeDef sensor_info; 


const float power_voltage_offset = 0.f;

#define KP_ADC_POWER_VOLTAGE  1.f / 4095.f * 3.3f * 11.f

void PowerManager_Task(void *arg)
{
	UNUSED(arg);
	
	uint32_t adc_value = PowerADC_GetValue();
	
	sensor_info.power_voltage = adc_value * KP_ADC_POWER_VOLTAGE + power_voltage_offset;
	
}


